﻿<%@ Page Title="" Language="C#" MasterPageFile="~/master/manager.master" AutoEventWireup="true"
    CodeBehind="station_edit.aspx.cs" Inherits="RailwayReservationWeb.manager.station_edit" %>

<asp:Content ID="Content2" ContentPlaceHolderID="PathContent" runat="server">
    <ol class="breadcrumb">
        <li><a href="default.aspx">Home</a></li>
        <li><a href="station_list.aspx">Station</a></li>
        <li class="active"><a href="station_edit.aspx">Update</a></li>
    </ol>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="server">
    <div class="page-header">
        <h1>
            Update Station</h1>
    </div>
    <p id="pMessage" runat="server" class="alert alert-danger">
    </p>
    <asp:ValidationSummary ID="ValidationSummary1" runat="server" CssClass="alert alert-danger"
        DisplayMode="List" />
    <div class="form-horizontal">
        <div class="form-group">
            <div class="col-md-3">
                <asp:Label ID="Label1" runat="server" Text="Station Code" AssociatedControlID="txtStationCode"
                    CssClass="control-label"></asp:Label>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="Please input Station Code"
                    ForeColor="Red" ControlToValidate="txtStationCode">∗</asp:RequiredFieldValidator>
                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="txtStationCode"
                    ErrorMessage="Station Code must be alphanumeric and between 1 and 6 characters"
                    ForeColor="White" ValidationExpression="^[a-zA-Z0-9]{1,6}$">&lt;</asp:RegularExpressionValidator>
            </div>
            <div class="col-md-9">
                <asp:TextBox ID="txtStationCode" runat="server" TextMode="SingleLine" CssClass="form-control"></asp:TextBox>
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-3">
                <asp:Label ID="Label2" runat="server" Text="Station Name" AssociatedControlID="txtStationName"
                    CssClass="control-label"></asp:Label>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="Please input Station Name"
                    ForeColor="Red" ControlToValidate="txtStationName">∗</asp:RequiredFieldValidator>
            </div>
            <div class="col-md-9">
                <asp:TextBox ID="txtStationName" runat="server" TextMode="SingleLine" CssClass="form-control"></asp:TextBox>
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-3">
                <asp:Label ID="Label3" runat="server" Text="Division" AssociatedControlID="txtDivision"
                    CssClass="control-label"></asp:Label>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ErrorMessage="Please input Division"
                    ForeColor="Red" ControlToValidate="txtDivision">∗</asp:RequiredFieldValidator>
            </div>
            <div class="col-md-9">
                <asp:TextBox ID="txtDivision" runat="server" TextMode="SingleLine" CssClass="form-control"></asp:TextBox>
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-offset-3 col-md-9">
                <asp:Button ID="btnSubmit" runat="server" Text="Submit" OnClick="btnSubmit_Click"
                    CssClass="btn btn-primary" />
                &nbsp;<asp:Button ID="Button1" runat="server" Text="Cancel" CausesValidation="False"
                    PostBackUrl="~/manager/station_list.aspx" CssClass="btn btn-default" UseSubmitBehavior="False" />
            </div>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="SideContent" runat="server">
    <div class="panel panel-primary panel-navi">
        <!-- Default panel contents -->
        <div class="panel-heading">
            Manage Stations</div>
        <!-- List group -->
        <ul class="list-group">
            <li class="list-group-item"><a href="station_list.aspx">View Stations List</a></li>
            <li class="list-group-item"><a href="station_add.aspx">Add New Station</a></li>
        </ul>
    </div>
</asp:Content>
